#pragma once
#include "DirectX.h"
#include "Sprite.h"

class Object{

public:
	LPD3DXSPRITE spriteHandler;
	LPDIRECT3DSURFACE9 backbuffer;
	LPDIRECT3DTEXTURE9 texture;
	RECT rectDraw; //Rect ve len
	int width;
	int height;

	int animateRate;
	DWORD lastAnimate;

	DWORD lastUpdate;

	Sprite* sprite;	
	bool start;
	
public:
	Object(void);
	~Object(void);
	virtual void Update();
	virtual void Render();

	virtual void UpdateRect(int left, int top, int width, int height);
	void UpdateRect(int left, int top);
	virtual void GetTick();
	virtual void Start();	

};